﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleMaster.Data
{
    class PlayerStatus
    {
        private int hp = 100;
        public int Score { get; set; } = 0;
        public int Combo { get; set; } = 0;
        public int MaxCombo { get; set; } = 0;
        public float Acc { get; set; } = 0f;
        public int HP
        {
            get
            {
                return hp;
            }
            set
            {
                if (value >= 0 && value <= 100)
                    hp = value;
                else
                    throw new Exception("血量非法");
            }
        }
        public PlayerStatus()
        {
            
        }
        
        public PlayerStatus(int score,int combo,int maxcombo,float acc,int hp)
        {
            Score = score;
            Combo = combo;
            MaxCombo = maxcombo;
            Acc = acc;
            HP = hp;
        }
    }
}
